export default function setButtonStatus(page) {
    this.props.button.setButtonVisible({
        add: page === 'main' || page === 'card',
        listrpt: page === 'main' || page === 'card',
        check: page === 'card',
        print: page === 'main' || page === 'card',
        link2: page === 'main' || page === 'card',
        output: page === 'main' || page === 'card',
        query: page === 'main',
        refresh: page === 'main',
        save: page === 'add' || page === 'edit',
        cancel: page === 'add' || page === 'edit',
        MoreOp: page === 'main',
        delete: page === 'card',
        edit: page === 'card',
        first: false,
        pre: false,
        next: false,
        last: false
    });
}
